package com.example.dayday.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Helen
 * @since 2022-09-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Student对象", description="")
public class Student extends User implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      @ExcelIgnore
    private Long id;

    @ApiModelProperty(value = "学生学号长度为8")
   @ExcelProperty(value = "学生学号",index = 0)
    private Long studentId;


    @ExcelIgnore
    private Long classId;

    @ExcelProperty(value = "身份证",index = 6)
    @ColumnWidth(value =20)
    private String idCard;


    @ExcelProperty(value = "学生姓名",index = 1)
    private String studentName;

    @ApiModelProperty(value = "1 已删除   0未删除")
    @TableLogic(value = "0",delval = "1")
    @ExcelIgnore
    private String isDelete;

    @ApiModelProperty(value = "1是男    2是女")
    @ExcelProperty(value = "学生性别",index = 2)
    private String sex;

    @ExcelIgnore
    private String password;

    @ExcelProperty(value = "电话号码",index = 5)
    @ColumnWidth(value = 20)
    private String phone;

    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private LocalDateTime createTime;

    @ExcelIgnore
    private String createUser;

    @TableField(fill =FieldFill.INSERT_UPDATE)
    @ExcelIgnore
    private LocalDateTime updateTime;

    @ExcelIgnore
    private String updateUser;


}
